<template>
   <div class="hello">
        <h1>{{msg}}</h1>
        <button @click="clickme">点我</button>
   </div> 
</template>

<script>
export default{
    name:"tname",
    data(){
        return {
            msg:"这是首页内容"
        }

    },
    methods:{
        clickme(){
            alter(1)
        }
    }
}
</script>

<style scoped>

</style>